package com.itfreer.form.entity.metadata;

import java.io.Serializable;

import com.itfreer.form.dictionary.reflect.DictionaryField;

/**
 * 类功能说明 定义表结构实体
 */
public class MetadataEntity implements Serializable {

	protected static final long serialVersionUID = -7828937287884523173L;

	/**
	 * 外建，元数据ID值
	 */
	protected String mid;
	
	/**
	 * 元数据信息ID
	 * 主键
	 */
	protected String id;

	/**
	 * 排序值
	 */
	protected Integer order;
	
	/**
	 * 字段名称
	 */
	protected String name;

	/**
	 * 字段别名
	 */
	protected String aliasName;

	/**
	 * 字段类型
	 */
	@DictionaryField(dictionaryName="f_datatype", toFieldName="dataTypeName")
	protected String dataType;
	
	/**
	 * 字段类型名称
	 */
	protected String dataTypeName;

	/**
	 * 是否是主键
	 */
	protected Boolean key;
	
	/**
	 * 是否是自动增值列
	 */
	protected Boolean auto;
	
	/**
	 * 是否可以为空
	 */
	protected Boolean allowNull;

	/**
	 * 长度
	 */
	protected Integer maxlen;
	
	/**
	 * 小数位长度
	 */
	protected Double decimaldigits;
	
	/**
	 * 默认值
	 */
	protected String defaultValue;

	/**
	 * 字典域
	 */
	protected String dictionaryName;

	public String getMid() {
		return mid;
	}

	public void setMid(String mid) {
		this.mid = mid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAliasName() {
		return aliasName;
	}

	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	
	public String getDataTypeName() {
		return dataTypeName;
	}

	public void setDataTypeName(String dataTypeName) {
		this.dataTypeName = dataTypeName;
	}

	public Boolean getKey() {
		return key;
	}

	public void setKey(Boolean isKey) {
		this.key = isKey;
	}

	public Boolean getAuto() {
		return auto;
	}

	public void setAuto(Boolean isAuto) {
		this.auto = isAuto;
	}

	public Boolean getAllowNull() {
		return allowNull;
	}

	public void setAllowNull(Boolean allowNull) {
		this.allowNull = allowNull;
	}

	public Integer getMaxlen() {
		return maxlen;
	}

	public void setMaxlen(Integer maxlen) {
		this.maxlen = maxlen;
	}

	public Double getDecimaldigits() {
		return decimaldigits;
	}

	public void setDecimaldigits(Double decimaldigits) {
		this.decimaldigits = decimaldigits;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getDictionaryName() {
		return dictionaryName;
	}

	public void setDictionaryName(String dictionaryName) {
		this.dictionaryName = dictionaryName;
	}
}
